
@call "%~dp0..\..\..\settings.cmd"

copy /Y "%~dp0.\dbexpinfpro.iss" "%~dp0.\dbexpinfpro_install.iss"

echo [GENERAL] > "%~dp0.\replacer.cfg"
echo Logging=1 >> "%~dp0.\replacer.cfg"
echo [REPLACE_PAIRS] >> "%~dp0.\replacer.cfg"
echo __VersionHigh__=%ProductVersionHigh% >> "%~dp0.\replacer.cfg"
echo __VersionMinor__=%ProductVersionMinor% >> "%~dp0.\replacer.cfg"
echo __VersionInternal__=%ProductVersionInternal% >> "%~dp0.\replacer.cfg"
echo __VersionBuild__=%ProductVersionBuild% >> "%~dp0.\replacer.cfg"
%REPLACESTRTOOL% "%~dp0.\replacer.cfg" "%~dp0.\dbexpinfpro_install.iss"
del /q "%~dp0.\replacer.cfg"
